<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Kinetis Bootloader Host: ExcludesListMatcher.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="nxp_logo_small.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Kinetis Bootloader Host
   &#160;<span id="projectnumber">2.0.0</span>
   </div>
   <div id="projectbrief">Host Tools for Kinetis devices</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Introduction</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('src_2blfwk_2_excludes_list_matcher_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">src/blfwk/ExcludesListMatcher.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * File:    ExcludesListMatcher.h</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * Copyright (c) Freescale Semiconductor, Inc. All rights reserved.</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * See included license file for license details.</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#if !defined(_ExcludesListMatcher_h_)</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#define _ExcludesListMatcher_h_</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;</div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#include &quot;GlobMatcher.h&quot;</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;</div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceblfwk.html">blfwk</a></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;{</div><div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="classblfwk_1_1_excludes_list_matcher.html">   34</a></span>&#160;<span class="keyword">class </span><a class="code" href="classblfwk_1_1_excludes_list_matcher.html">ExcludesListMatcher</a> : <span class="keyword">public</span> <a class="code" href="classblfwk_1_1_glob_matcher.html">GlobMatcher</a></div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;{</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;    <a class="code" href="classblfwk_1_1_excludes_list_matcher.html#a860759de381aec4b801559e3d9a89e89">ExcludesListMatcher</a>();</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;    <a class="code" href="classblfwk_1_1_excludes_list_matcher.html#a7e0c855c5666662785a5400926f6ee9c">~ExcludesListMatcher</a>();</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classblfwk_1_1_excludes_list_matcher.html#a5b7379f234e988a6e771b59ddaa3b11b">addPattern</a>(<span class="keywordtype">bool</span> isInclude, <span class="keyword">const</span> std::string &amp;pattern);</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classblfwk_1_1_excludes_list_matcher.html#a262053381ffc163cd3d4cecb2a5efa33">match</a>(<span class="keyword">const</span> std::string &amp;testValue);</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;<span class="keyword">protected</span>:</div><div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="classblfwk_1_1_excludes_list_matcher.html">   54</a></span>&#160;    <span class="keyword">struct </span><a class="code" href="classblfwk_1_1_excludes_list_matcher.html#structblfwk_1_1_excludes_list_matcher_1_1glob__list__item__t">glob_list_item_t</a></div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    {</div><div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="classblfwk_1_1_excludes_list_matcher.html#ac260e1de9d114325b9a5c34116622bbf">   56</a></span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="classblfwk_1_1_excludes_list_matcher.html#ac260e1de9d114325b9a5c34116622bbf">m_isInclude</a>;   </div><div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="classblfwk_1_1_excludes_list_matcher.html#a49a6917854f8672c5a9963a34ffcf521">   57</a></span>&#160;        std::string <a class="code" href="classblfwk_1_1_excludes_list_matcher.html#a49a6917854f8672c5a9963a34ffcf521">m_glob</a>; </div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    };</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    <span class="keyword">typedef</span> std::vector&lt;glob_list_item_t&gt; glob_list_t;</div><div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="classblfwk_1_1_excludes_list_matcher.html#a896338d13c9ebb25bae83dae1b3de871">   61</a></span>&#160;    glob_list_t <a class="code" href="classblfwk_1_1_excludes_list_matcher.html#a896338d13c9ebb25bae83dae1b3de871">m_patterns</a>; </div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;};</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;}; <span class="comment">// namespace blfwk</span></div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;<span class="preprocessor">#endif // _ExcludesListMatcher_h_</span></div><div class="ttc" id="classblfwk_1_1_excludes_list_matcher_html_a262053381ffc163cd3d4cecb2a5efa33"><div class="ttname"><a href="classblfwk_1_1_excludes_list_matcher.html#a262053381ffc163cd3d4cecb2a5efa33">blfwk::ExcludesListMatcher::match</a></div><div class="ttdeci">virtual bool match(const std::string &amp;testValue)</div><div class="ttdoc">Performs a single string match test against testValue. </div><div class="ttdef"><b>Definition:</b> src/blfwk/src/ExcludesListMatcher.cpp:38</div></div>
<div class="ttc" id="namespaceblfwk_html"><div class="ttname"><a href="namespaceblfwk.html">blfwk</a></div><div class="ttdef"><b>Definition:</b> BlfwkErrors.h:16</div></div>
<div class="ttc" id="classblfwk_1_1_excludes_list_matcher_html_a49a6917854f8672c5a9963a34ffcf521"><div class="ttname"><a href="classblfwk_1_1_excludes_list_matcher.html#a49a6917854f8672c5a9963a34ffcf521">blfwk::ExcludesListMatcher::glob_list_item_t::m_glob</a></div><div class="ttdeci">std::string m_glob</div><div class="ttdoc">The glob pattern to match. </div><div class="ttdef"><b>Definition:</b> src/blfwk/ExcludesListMatcher.h:57</div></div>
<div class="ttc" id="classblfwk_1_1_excludes_list_matcher_html_a5b7379f234e988a6e771b59ddaa3b11b"><div class="ttname"><a href="classblfwk_1_1_excludes_list_matcher.html#a5b7379f234e988a6e771b59ddaa3b11b">blfwk::ExcludesListMatcher::addPattern</a></div><div class="ttdeci">void addPattern(bool isInclude, const std::string &amp;pattern)</div><div class="ttdoc">Add one include or exclude pattern to the end of the match list. </div><div class="ttdef"><b>Definition:</b> src/blfwk/src/ExcludesListMatcher.cpp:23</div></div>
<div class="ttc" id="classblfwk_1_1_excludes_list_matcher_html_structblfwk_1_1_excludes_list_matcher_1_1glob__list__item__t"><div class="ttname"><a href="classblfwk_1_1_excludes_list_matcher.html#structblfwk_1_1_excludes_list_matcher_1_1glob__list__item__t">blfwk::ExcludesListMatcher::glob_list_item_t</a></div><div class="ttdoc">Information about one glob pattern entry in a match list. </div><div class="ttdef"><b>Definition:</b> src/blfwk/ExcludesListMatcher.h:54</div></div>
<div class="ttc" id="classblfwk_1_1_excludes_list_matcher_html_ac260e1de9d114325b9a5c34116622bbf"><div class="ttname"><a href="classblfwk_1_1_excludes_list_matcher.html#ac260e1de9d114325b9a5c34116622bbf">blfwk::ExcludesListMatcher::glob_list_item_t::m_isInclude</a></div><div class="ttdeci">bool m_isInclude</div><div class="ttdoc">True if include, false if exclude. </div><div class="ttdef"><b>Definition:</b> src/blfwk/ExcludesListMatcher.h:56</div></div>
<div class="ttc" id="classblfwk_1_1_excludes_list_matcher_html"><div class="ttname"><a href="classblfwk_1_1_excludes_list_matcher.html">blfwk::ExcludesListMatcher</a></div><div class="ttdoc">Matches strings using a series of include and exclude glob patterns. </div><div class="ttdef"><b>Definition:</b> src/blfwk/ExcludesListMatcher.h:34</div></div>
<div class="ttc" id="classblfwk_1_1_glob_matcher_html"><div class="ttname"><a href="classblfwk_1_1_glob_matcher.html">blfwk::GlobMatcher</a></div><div class="ttdoc">This class uses glob pattern matching to match strings. </div><div class="ttdef"><b>Definition:</b> src/blfwk/GlobMatcher.h:37</div></div>
<div class="ttc" id="classblfwk_1_1_excludes_list_matcher_html_a7e0c855c5666662785a5400926f6ee9c"><div class="ttname"><a href="classblfwk_1_1_excludes_list_matcher.html#a7e0c855c5666662785a5400926f6ee9c">blfwk::ExcludesListMatcher::~ExcludesListMatcher</a></div><div class="ttdeci">~ExcludesListMatcher()</div><div class="ttdoc">Destructor. </div><div class="ttdef"><b>Definition:</b> src/blfwk/src/ExcludesListMatcher.cpp:17</div></div>
<div class="ttc" id="classblfwk_1_1_excludes_list_matcher_html_a860759de381aec4b801559e3d9a89e89"><div class="ttname"><a href="classblfwk_1_1_excludes_list_matcher.html#a860759de381aec4b801559e3d9a89e89">blfwk::ExcludesListMatcher::ExcludesListMatcher</a></div><div class="ttdeci">ExcludesListMatcher()</div><div class="ttdoc">Default constructor. </div><div class="ttdef"><b>Definition:</b> src/blfwk/src/ExcludesListMatcher.cpp:12</div></div>
<div class="ttc" id="classblfwk_1_1_excludes_list_matcher_html_a896338d13c9ebb25bae83dae1b3de871"><div class="ttname"><a href="classblfwk_1_1_excludes_list_matcher.html#a896338d13c9ebb25bae83dae1b3de871">blfwk::ExcludesListMatcher::m_patterns</a></div><div class="ttdeci">glob_list_t m_patterns</div><div class="ttdoc">Ordered list of include and exclude patterns. </div><div class="ttdef"><b>Definition:</b> src/blfwk/ExcludesListMatcher.h:61</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_80fb9e53c172a775cab667063273d0e3.html">blfwk</a></li><li class="navelem"><b>ExcludesListMatcher.h</b></li>
    <li class="footer">Generated on Mon Mar 7 2016 16:49:50 for Kinetis Bootloader Host by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11 </li>
  </ul>
</div>
</body>
</html>
